home *** CD-ROM | disk | FTP | other *** search
/ Painter 5.0.3 / PAINTER.iso / mac / Art Gallery / START.STA (.txt) < prev    next >
Encoding:
UltraCard Stack  |  1997-02-18  |  220.0 KB  |  1,586 lines  |  [TEXT/LMAN]

  1. BKGDshow bg
  2. CRDHcredits cd
  3.     CRDHsettings cd
  4. CRDHshow cd
  5.     INFO
  6. Credits CdSCRP
  7. on mouseUp
  8.   play bg sound "Nav.snd"
  9.   go cd "Settings Cd"
  10. end mouseUp
  11. shape id 1TAIL
  12. shape id 4TAIL
  13. shape id 3TAIL
  14. bitmap id 2data
  15. ^vvz$
  16. ---1-
  17. 1--1111
  18. ,--111111
  19. d6h66
  20. -UY}}
  21. Q('+(+]
  22. ../W^
  23. U51111--
  24. -1U1UY
  25. IqMMMMqm
  26. qmqqmq))
  27. U111111---
  28. }YY}YU
  29. YYUYYU1
  30. MM))Mm
  31. 111-1-----
  32. }YUYUUUUUUUUU-
  33. -1UUY}
  34. }UYUU1UUU1UU1-
  35. qM(M(
  36. U1---
  37. -1111
  38. th6hL
  39. ~}YU1U1UUYYY
  40. }YYYUUU1UY
  41. UU11Y
  42. }YUUU1UUY}
  43. }YU1YUY
  44. UU1UUYY
  45. }UUU1UYY
  46. YUYUY
  47. YYU1UUY
  48.  ,n^8&
  49. YUU1UY
  50. YYYUYU
  51. b~~~~
  52. ab7Q?!
  53. jaie|
  54. ~~f~~z
  55. zR,]]u
  56. yzzzy
  57. ^^^Rd
  58. '' $,
  59. uzv^^zzv
  60. >>2l`D|
  61. #/2` 
  62. [_S[_\_
  63. +_![_
  64. +h(/(/+,++
  65. ^$^hxyx    t
  66. <TTThT66H^
  67. %r__9
  68. Z[Z[_
  69. [Z__+
  70. #+___
  71. Y9>=>>=>>V
  72. $$($$$
  73. ]'Q$+
  74. ''''+
  75. '+R'''+
  76. '($$$
  77. JTAIL
  78. shape id 5TAIL
  79. field id 6data
  80. Version 2.0.0f by Shawn GrunbergerTAIL
  81. field id 7data
  82. Copyright 1997 Fractal Design Corp.
  83. Oracle Media Objects is a trademark of Oracle Corporation, used under license. This program was created in Oracle Media Objects.TAIL
  84. bitmap id 8data
  85. /TAIL
  86. Show CdSCRP
  87. on idle  -- this is what drives the show forward/backward
  88.   global gTimerStart,gTimerDelay,gImageNum
  89.   if the visible of bg bitmap "Pause On" is false  -- i.e. if the show is paused, do nothing
  90.   then
  91.     if the ticks > (gTimerStart + (gTimerDelay * 60) - 120)  -- tests if the delay has completed
  92.     then
  93.       if nextNum() = "end"  -- test for end of show
  94.       then 
  95.         exitTest -- exit the show
  96.       else
  97.         put the ticks into gTimerStart  -- resets the delay timer
  98.         loadImage
  99.       end if
  100.     end if
  101.   end if
  102.   pass idle  -- makes sure the Show Wd idle handler executes
  103. end idle
  104. on exitTest
  105.   global gFromFrontEnd
  106.   if gFromFrontEnd is true then 
  107.     dismiss with "exit"
  108.   else 
  109.     quit 
  110.   end if
  111. end exitTest
  112. Load warningdata
  113. Cool art on the way...please wait...TAIL
  114. BackSCRP
  115. on mouseUp
  116.   global gPlayForward
  117.   play bg sound "Nav.snd"
  118.   set the visible of bg bitmap "Forward On" to false
  119.   set the visible of bg bitmap "Pause On" to false
  120.   set the visible of bg bitmap "Back On" to true
  121.   put false into gPlayForward
  122. end mouseUp
  123. PauseSCRP
  124. on mouseUp
  125.   play bg sound "Nav.snd"
  126.   set the visible of bg bitmap "Back On" to false
  127.   set the visible of bg bitmap "Forward On" to false
  128.   set the visible of bg bitmap "Pause On" to true
  129. end mouseUp
  130. ForwardSCRP
  131. on mouseUp
  132.   global gPlayForward
  133.   play bg sound "Nav.snd"
  134.   set the visible of bg bitmap "Back On" to false
  135.   set the visible of bg bitmap "Pause On" to false
  136.   set the visible of bg bitmap "Forward On" to true
  137.   put true into gPlayForward
  138. end mouseUp
  139. StopSCRP
  140. on mouseUp
  141.   global gFromFrontEnd
  142.   play bg sound "Nav.snd"
  143.   set the visible of bg bitmap "Stop On" to true
  144.   set the visible of bg bitmap "Back On" to false
  145.   set the visible of bg bitmap "Pause On" to false
  146.   set the visible of bg bitmap "Forward On" to false
  147.   if gFromFrontEnd is true then
  148.     dismiss with "exit"
  149.   else
  150.     quit 
  151.   end if
  152. end mouseUp
  153. SettingsSCRP
  154. on mouseUp
  155.   play bg sound "Nav.snd"
  156.   go cd "Settings Cd"
  157. end  mouseUp
  158. RZZRZ
  159. 1~Z~~
  160. RZZRZ
  161. 1~Z~~
  162. RZZRZ
  163. ~zZZZZ
  164. 1~Z~~
  165. ~Z~Z~
  166. 11ZYZYZZ
  167. ~Z~Z~
  168. 11ZYZYZZ
  169. 1MMMM
  170. bZZRV
  171. ~~~Z~
  172. 11ZYZYZ
  173. MMqMMM
  174. R6RZY1
  175. 1YY}1
  176. `Z1ZQ
  177. $4)b%H
  178. [XP\P
  179. [[[[[XXD[[
  180. )5bc,,
  181. $Pc;`C
  182. NO),jG
  183. }1ZYQ
  184. ZRZRRRR
  185. RZZ~Z
  186. ~Z~ZR
  187. 1ZZ~Z
  188. Z~ZZZR
  189. Q11Q1YZ1ZZZZRZRRR
  190. R~Z~Z~Z~
  191. 1ZQbZ~
  192. ~ZZZZRZ
  193. 1Q1Q1YZ1ZZZZ
  194. QQqqqqqqqqqqpM
  195. qMqpqqMQR
  196. YYZZRZR
  197. Z~ZZRZ
  198. }ZYZb~~ZZZVZR
  199. ZRZZ~~Z~Z
  200. YZZ111
  201. ZZZZZZ~
  202. Z~ZRR
  203. Z~ZZZZVR
  204. RZZ~Z~ZZR
  205. 1ZZ1ZZZQb~
  206. Z~ZZZRRR
  207. 1ZYZZ~ZZ~RZVRQ
  208. MUMqqqqq
  209. qqpqqpqqyM$qq
  210. qqqqMM
  211. Z~ZZRZZRM
  212. 1ZZYZQ
  213. Z~ZZZRR
  214. b~~ZZR
  215. ZV~ZZ~VR
  216. Z~VZR
  217. RZZZzZR
  218. ~Z1R11
  219. ~ZZZ~
  220. ~b~ZZRRR
  221. ~Z~ZRR
  222. QqqMMMQMMMqqqq
  223. qyHqqq
  224. qqqyMq
  225. ~~ZRR
  226. ZZZ^~~
  227. Z~ZZRRR
  228. t$CC@C@
  229. t PcC
  230. $$$,,$)
  231. bb~5V
  232. RRRQR
  233. ~~ZzZVVR
  234. ~~Z~ZZVR
  235. uqqqqq
  236. qqqpq
  237. quqyqqq
  238. qqqqHqMq
  239. qqqqq
  240. RZZZZVZ
  241. ~~ZZZVZRR
  242. [;`C@@C
  243. L<<<p
  244. $L<$<
  245. ,,$-,
  246. RRRQM1U
  247. ~~ZZZZzZRVRR
  248. NQRRQQ
  249. ~ZZRZRZRRRR
  250. UUMtqq
  251. qqqHqM
  252. QMqqq
  253. RZ~ZZZV
  254. }YUYX\
  255. ~RZRZRZVRRR
  256. ,,$N|
  257. }zRQM1
  258. QZ1Z1
  259. ~~ZRR
  260. ZVZzZzZVRQ
  261. 1Z~^~ZZZRR
  262. qUMUqqqpqqqqHM
  263. MMHM(MLMMHMM
  264. ZR~RZRRQ
  265. |XX|X
  266. |\||YPtMtMtyyttyt
  267. ~~ZZRRR
  268. RVRVQ
  269. UMMMM
  270. MMLqpU
  271. yPyPqHMHMLqMHqqq
  272. LL9<=p<
  273. 9=$px!
  274. 1ZZRRR
  275. qpMqMMMMMMq
  276. qqqHMqHqM
  277. qqqqq
  278. 6~bZZZV
  279. qMqpMqqMMML
  280. tqMLMqLqqq
  281. qqqqHqMHM
  282. ZZ~ZZ
  283. y|yy$MLMq
  284. qMqpqqqHMqLM
  285. %|\,!rV
  286. 9<M<I<=
  287. ZZRRM
  288. ZZRRM
  289. QqqqqqqqMMqHqqHqqqqqqq
  290. qqqqpM
  291. MMUMq
  292. qqqqyMqHqMMMMMU
  293. Nuv~ZZ~ZZY
  294. ~qqpqqq
  295. qqlqqqq
  296. qMLqM
  297. Mqqqq
  298. <<=9<<9=<p
  299. Qx"""
  300. <L$< <
  301. 7V*""
  302. 9<9L4'
  303. L=$=*f
  304. <L9<p
  305. Wb~b$%
  306. Z~Z~$
  307.  ,~uV
  308. kKcPc
  309. -!!    ,
  310. CCXXX
  311. [[CCX
  312. `KkCXXXG
  313. $999p
  314. ),))    
  315. $%,),
  316. Y#-Nb))
  317. D||XX
  318. gno1    
  319. $%,$,
  320. $%($%
  321. Z~VRRQ
  322. 1~^RR
  323. UMMqM
  324. MMyqq
  325. MpMqLMM
  326. PMHqHMtM
  327. UttY|X
  328. Z~ZZRR
  329. 1Z1QR
  330. ZZ11Q
  331. MUqMQ
  332. qqMuMQvq
  333. qqqqqM
  334. MpMMHqM
  335. RZZYY1
  336. ZZZRR
  337. ty|}|
  338. XyPqMqHqMqHqM
  339. ~ZRRV
  340. Z~ZZR
  341. QZYRQ
  342. bZZR^~
  343. ZZRVR
  344. Mqqqz
  345. qlqqqqqMpMqLqq
  346. MpMqqqHMM
  347. ZZRZR1R1
  348. qqtytY|
  349. MqHqMqHqMP
  350. Q11U11
  351. ZZZRH
  352. -..""
  353. X[[[P
  354. @XXXD
  355. """""
  356. xZ"".
  357. "."""
  358. """""
  359. """*"
  360. x"Q".
  361. RVZVR
  362. RRZ~~
  363. RZR6RRZzZvZ
  364. qMpMpyMqqq
  365. qqqqqq
  366. ZRZ~Z~RR
  367. RRRRRV
  368. [#{# 9
  369. $$@CX[XX
  370. 9<==<
  371. cP[XX
  372. $C[X[XP
  373. <$<99<=
  374. ,$,,$
  375. )4WW$
  376. ~Z~ZVRR
  377. ZZVRQ
  378. RVRRM
  379. QZZQZZYZ
  380. [ZVRR
  381. qqHqMHqq
  382. MMqLM
  383. qMqHqq
  384. Z~ZZR
  385. qqLMq
  386. PPXk@
  387. p9<=9
  388. QeeQ*
  389. c_,$,$
  390. [jkb=
  391. $d hH$(,f
  392. <9<==<pL
  393. tS=Wcj
  394. 9<LL<
  395. p<9"e]
  396. [GXG[
  397. fRnW=
  398. =p<<<p
  399. q<p1p
  400. |1($!
  401. $,_J-
  402. "s4.""
  403. Lp9U<
  404. 99p9<9
  405. 9Y1%    
  406. $vc{~
  407. ,0OR--    W~b
  408. ".*."
  409. 99p<pp<
  410. $,K~b
  411. <9=<9L<9
  412. <49p<
  413. <99<Lp<<p
  414. <p<pp<
  415. L9<Lp<=
  416. $),c)
  417. =<Lp<L
  418. <p=<=
  419. 9<p<9pp<99
  420. ==x<<p
  421. 9<Lp<=
  422. $,,,W
  423. ~W-,,
  424. p=<L=4L<=
  425. ,,-,54)
  426. )9<99<pp
  427. Wc5~Wb
  428. !,$),$! 
  429. @dD@<
  430. c)Wbb
  431. ".*&V
  432. "a!x.""
  433. ,,,$)
  434. WR_$b    9
  435. 4q#"`|;
  436. ,~5~bb
  437. $$P$$
  438. ,    ,,    -
  439. <p9<L
  440. c~R,)
  441. hh $t
  442. .{"""
  443. "".*V<
  444. //$8h
  445. Yvy$h
  446. 4)5~b
  447. 9]##ttT
  448. $L99<
  449. jgng_5)55W
  450. **&*.
  451. $,,,    
  452. bbcW5K
  453. #t#PP
  454. ^*"".
  455. b~b~c
  456. [XcXX
  457. [XcXX
  458. 5<5^1
  459. ,$,$,
  460. ,-,,$
  461. ,($<.""
  462. ),$,,
  463. &',((<
  464. ~55~W
  465. ,,$!$
  466. ),,,{
  467. OR{V5
  468.  $$$ 
  469. 5~b~~~c4
  470. k@Hkk
  471. *8*..
  472. $pp<!
  473. !9x9<
  474. @[C[@@;
  475. 99L<Qe
  476. <=L<x
  477. *.*&"""
  478. [;XCX
  479. x$$$$$
  480. [[[X[[
  481. $$$ ,t
  482. [[[X[[
  483. pp<=L
  484. ."*4*
  485. c0~b,
  486. Tp4 4<
  487. !)0!-%
  488. r}(T,
  489. kZZ1Z
  490. 111ZZ
  491. ZZZRZ
  492. 11YQR
  493. 1Y}}UyU}PUU
  494. UPYPUyPU
  495. 1RYZYZZ
  496. MMHqM
  497. qHqMpqHq
  498. qqqqpq
  499. qqqqU
  500. PUqqq
  501. 1Y1ZZ
  502. hh`k;'
  503. kkkkkh
  504. <<99<9<
  505. ""t".*
  506. $,%,,
  507. ,8$$$0
  508. `K`Kk
  509. )(),    
  510. 9<!<p
  511. }Y~^~
  512. ~Z~VRR
  513. RZZRZZVR
  514. ZYZZR
  515. [~ZVRZR
  516. R1ZZ~^
  517. ~VRRR
  518. ZZZYZ
  519. |}Yy|U}yYUUYy}}}
  520. }}t}}tY}Ut
  521. RZZR~VR
  522. ~ZZ^Z
  523. ~Z~RZRR
  524. b~~VZRR
  525. 1MMMqpqy
  526. Uqyqqlqqq
  527. qlqqq
  528. ~~Z~ZZRRR
  529. RZzRZRRRRNRRM
  530. ~ZZQ1
  531. 1RRZRR
  532. ~VZVV
  533. QR~ZZQ
  534. ZZZZZZYR
  535. ZVVRRRR
  536. }|yYy}y|}}y}
  537. y}}}}y}}yt}U
  538. ~ZZ~ZVRR
  539. ~~ZRRQ
  540. MtMyqyty
  541. qqqqMH
  542. ZZ~RVR
  543. bjc~RN
  544. s?#rs>
  545. Q"#""Q
  546. D#"Qu"#sW"
  547. "QPP#
  548. ###"##"
  549. [##"?
  550. ######
  551. #"#"u
  552. "!xa"
  553. "*"*'
  554. ~~~~Q
  555. QZRQ~QQ1U1
  556. VZ~ZVZV
  557. RRRRRR
  558. RZZR~Z
  559. RQRRZR
  560. QYZYR
  561. ~ZZzZVR
  562. ~~~Ry}yXU|U
  563. }y|}UU
  564. ~~ZZVZVRRRR
  565. ZZ~Z~
  566. UqqqqqqvQququM
  567. UtPqMtU|XU5UYX}
  568. ~~~-/
  569. P,,$%
  570. -,b!89
  571. _+~~_W,%$
  572. )-  $
  573. bxcjn
  574.     ,,,$
  575. )    %$)    -
  576. !    )     
  577.      $$b
  578. b0nZ&^n
  579. )-,$,)
  580. $kC[[D
  581. [[XXX[
  582.     !- --    ),
  583. !x!5p
  584. ()    ) 
  585. { <!<
  586. $$$# 
  587. $tPPP
  588. 9X)5)    
  589. p<94p
  590. r^vv^R
  591. v^v^]
  592. y$Lh,
  593. ~ZZZ(
  594. <99<<9$
  595. !L<=p=
  596. @@CcC
  597. GxXd 
  598. 9LL<p
  599. <L=<9L==
  600. $<!T,
  601. [;$8$
  602. p<<==<L
  603. ,!<L!
  604. -8!<L
  605. !==<L9
  606. pp<<p
  607. <LL=LLL<LL
  608. <LLT9=9
  609. <=<<L<
  610. <LL=<LL<LL<
  611. L9<p<L<
  612. L=<LL
  613. p<<Lp<<p<=<=<9=<
  614. $4P<,
  615. Lp<99
  616. Lp<9<pL
  617. 9<$!4
  618. p<99p$9!
  619. $$$$,
  620. !.eee
  621. dDLdh
  622. Qax."
  623. $`@($$
  624. efx""
  625. d``` 
  626. $h`h,
  627. @x``h@,$
  628. V.*""
  629. SXc[X
  630. Ockc``
  631. """&"
  632. =p<=94p$
  633. t8\dl
  634. \\addTa
  635. H8l`d
  636. kkhk`S
  637. <%$%<1<
  638. ,+D H
  639. p9p<9<p
  640. <p<p9<99
  641. pp<<9p9<p
  642. h` `C
  643.  (<<p
  644. [C[[;
  645. cCXX[
  646. U<pL<
  647. i<LL$p9$$$4
  648. `xL@$%
  649. `kP,k$
  650. LD` lHD
  651. `@C[[[
  652. Qafx"
  653. $((4 $<
  654. 8<<$(
  655. QYQYz
  656. <8< h,l
  657. 88<<<
  658. $$$$(t
  659. X[[X[[
  660. $($,t
  661. ;cggP
  662. dyyHt$
  663. <<8<<
  664. [GXXXX
  665. $-%( 
  666. 888<8
  667. tPWVUVQQ
  668. $O))fn
  669. QQ##rr
  670. 9$8&b
  671. @hhH hH  h  
  672. ussQuQ"
  673. 0'RV_
  674. """""#"
  675. u"#"""
  676. $    (,    
  677. RRYZZ
  678. [~zRR
  679. ZRZRZVRR
  680. ZYZ~Z
  681. b~~~ZzV
  682. ~ZRZ~~
  683. ~ZZZVVR
  684. RZRZRZ~
  685. }t}y|y}yXytU|U5
  686. }}ZZ~
  687. 5QyYQU5
  688. ~ZZQZZ~
  689. Z~~RRQ
  690. nw4cc~Wj
  691. l8HPP
  692. R1ZZZZ~Z
  693. R1ZZZZZZRZ
  694. YZZZZZZZ
  695. }}YY1UYyXUUyP}yY|yYU
  696. 5YPU}
  697. }t}}ty}Q
  698. fjfffj
  699. !)(! 
  700. ,8<88888
  701. `@HkH
  702.           (-
  703. 878<8
  704. kXX[X
  705. ! !%!(    
  706. <<88<
  707. !!,))(        
  708. ZZZ~Z
  709. Z~ZZZ
  710. Z~~ZRQ
  711. PyUXUtU
  712. UY15f
  713. UUPyXUU|y}y}
  714. b~ZZ~
  715. 11Z1Z
  716. #$$$$$
  717. P[X[[G
  718. 88<<<<
  719. [X[[[
  720. (    ))(    !(
  721. 88<<<<
  722. [X[[X
  723. [[XX[
  724. [[XX[
  725. [[XX[
  726. )-(!---,-
  727. 88<<8
  728. ) !(    )
  729. ,- !- 
  730. 88<<88
  731. 88<<<<<888<
  732. ,),--
  733. <<88<8
  734. <888<88
  735. 8<<88
  736. ZYZZYZ
  737. ~ZZQZ
  738. ZYZZYZ
  739. ~ZZQZ
  740. YtYyUYtUPUPU}PUtU
  741. }}}U}y|y}}
  742. ZYZZYZ
  743. ~ZZQZ
  744. [[P[X
  745. [[P[X
  746. ---,)
  747. (-,-!
  748. <8<8<<
  749. 8<<8<
  750. ~ZZZRZ
  751. RZ1RZRR
  752. ~ZZZRZ
  753. ZRZRR
  754. 1yyXyUPU
  755. UPyUtYtUY
  756. y}Yy|}y}
  757. ZRZRR
  758. }1ZYZRZZRRZ
  759. RZZZ~b~ZZ
  760. ~b~ZZRZR
  761. 11YZZ1ZZRRZ
  762. RZZZ~b~ZZ
  763. ~b~ZZRZR
  764. 1QYZYZZRZRZ
  765. UYy}P}UYUPUYtYy}|y
  766. y}y}|y
  767. YZZZRZ
  768. RZZZ~b~ZZ
  769. 1RYZZ
  770. Z~ZZRZ
  771. }ZYZ~^~ZZZZRRNQ
  772. R1RZ~Z~ZZR
  773. 1ZYZ1
  774. QZZZ1ZZZZ
  775. 1ZYZZ~Z~ZZZVRRNQ
  776. R1RZ~Z~ZZR
  777. 1ZYZ1
  778. QZZZ1ZZZZ
  779. YZZ~Z~ZZZVRRNQ
  780. M}yXy}y|yPUYtYyP}yP}
  781. |y}|}y}
  782. ZZ~Z~ZZ~VVRM
  783. R1RZ~Z~ZZR
  784. 1ZYZ1
  785. QZZQZYZZZ~
  786. Z~ZZZRR
  787. ~~RVR
  788. RZVZRZv
  789. ~^ZZZ~
  790. ZZ~RZR
  791. ~~Z~ZR
  792. RZVZRZv
  793. ~^ZZZ~
  794. ZZ~RZRRR
  795. 11ZYZ
  796. ~~Z~ZR
  797. U}y}|U}t}UtYyXy}}}y}
  798. }t}y|}}
  799. ~~ZZZR
  800. RZVZRZv
  801. ^ZZZ~
  802. Z~ZVZR
  803.     $!- )!
  804. Z~ZZ~VR
  805. Z~ZZ~VR
  806. |yyYtYyXU|}y}y}
  807. }}t}y}
  808. Z~ZZ~RV
  809. Z~ZZVZRR
  810. Z~ZZVZRR
  811. ~V~RQ
  812. y}U}tYyPU|UyYt}}}y
  813. }y}}|}y}}}55
  814. ~Z~ZZV~
  815. ~Z~ZZRZRZRR
  816. ~Z~ZZRZRZRR
  817. }}t}U}PU}PUtYt}y|y}}
  818. ZZ~ZZZVZZRR
  819. ~ZZZVRZRRRR
  820. R1Z~Z
  821. ~ZZZVRZRRRR
  822. }}}y}t}tU}PyUUtYU|y}}|y}
  823. Z~ZZZRVZRRR
  824. --!!(
  825. <<<88<
  826. <<8<8
  827. <8<<<
  828. )    (!)
  829. $4"HG
  830. (    !(-
  831. 8<<8<
  832. <<<<<
  833. UXyPU}PU}PyPUUPyUXyPYU
  834. (-))()!
  835. $(X[G
  836. #PP$(X[
  837. b~VRQ
  838. ZYR1R
  839. RZZZZZZ
  840. ZZZYZ
  841. ~~~RQ
  842. b~VRR
  843. PYPyYt}y|yU}PUPYPU
  844. ZZZYR
  845. ZZRZZQ
  846. ~Z~RRQ
  847. RZZZZZQZ1Z1Y
  848. ~Z~QQ
  849. ZRZZR
  850. QZZZZY
  851. Z1YZQY
  852. RZ~~Z~~RQ
  853. ~ZZZRZ
  854. UPyYyYtYyY}tU|UUUPUPU}U
  855. }}U11
  856. ~ZZZRZ
  857. RZZZZR1QZ1YR1Q
  858. ZRZ~~~~QQ
  859. }~ZZZRZ
  860. RZZz~R
  861. ~~ZZZRR
  862. RZZRQ
  863. RZV~ZR1
  864. Z~ZZVRR
  865. UPyXy}tYtyYtUXPUUPYyt}
  866. ZZR1M
  867. b~ZZRVR
  868. Z~RR1
  869. RZZV~R
  870. Z~~VR
  871. ~~ZQU
  872. UYPU|UUy}P}U|UUUP}yP}
  873. }t}}}}5
  874. ~~~~V
  875. }ZZV~~
  876. ~Z~QM
  877. QZ^~Y
  878. ~Z~V~~
  879. ~~Z~Z~~
  880. U}PU|yXy}P}UPPYUP}}y|}}
  881. }}t}}y
  882. ~Z~Z~~
  883. ~~Z~RQ
  884. ,)!!,--
  885. k@CH[[
  886. )),-    
  887. PKC@[
  888. --  F r a c t a l S h o w  2
  889. --  By Shawn Grunberger
  890. --  Scripts, Artwork, and Interface Copyright 1996 Fractal Design Corp. All rights reserved.
  891. --  Version history:
  892. --  1.0 - shipping on Painter 4.0/Win U.S. CD-ROM
  893. --  2.0.0c - added navigation buttons; redesigned options and credits sections; added support for
  894. --           multiple logos; added two-line text captions; shipping on Painter 4.0/Win German, French,
  895. --           Japanese.
  896. --  2.0.0e - added support for launching FractalShow from the FDC Shell; FS now checks for certain
  897. --           preferences before initializing them; exits differently depending on if FDC Shell is the parent.
  898. --           Also changed main image bitmap and logo bitmap to colorDepth = "thousands". Shipping on
  899. --           FDC Demo CD v2 U.S.
  900. --  2.0.0f - Shipping on FDC Demo CD v3 with only minor changes.
  901. -- Globals:
  902. ---- kOrigVolume - the system volume level when FS is started
  903. ---- kMediaPath - the full path to the Media folder
  904. ---- kPD - the path delimiter (":" for Mac; "\" for Win)
  905. ---- kImageType - the 3- or 4-character code to identify the image filetype (PIC, BMP, PICT, etc.)
  906. ---- kImageList - single-line list of all image names in Media folder
  907. ---- kLogoList - single-line list of logo file names to be used for each slideshow image
  908. ---- kMusicList - single-line list of all sound files (type AIFF) in Media folder
  909. ---- gImageNum - the number of the currently displayed image (at start of show: 0)
  910. ---- gLoopForever - true/false if show is to loop 
  911. ---- gPlayForward - true/false if the show is set to play forward
  912. ---- gTimerStart - the start time (in ticks) of the current wait period
  913. ---- gTimerDelay - the inter-image delay (in seconds)
  914. ---- gMusicNum - the number of the currently playing sound file (at start of show: 0)
  915. ---- gMusicOn - true/false if the music is switched on
  916. ---- gMusicVolume - passed from the FDC shell; the volume for the background music
  917. ---- gFromFrontEnd - true/false if the slideshow was started from the FDC shell
  918. ---- gBufferValue - the preferred music bufferSize
  919. ---- gOrigSystemVolumeFS - the original system volume when FS was launched
  920. -- Functions that should be localized:
  921. ---- warnNoMedia() - used when FS can't find the Media folder, or it has no images
  922. ---- warnMemory() - used when SuperCard generates an "out of memory" error
  923. -- Notes:
  924. ---- 1. See the script of cd "Show Cd" for the idle handler, which drives the show cycle.
  925. ---- 2. The only font used is 12pt Helvetica, bold and normal styles.
  926. ---- 3. For cross-platform compatibility, the Windows 8-bit system palette is used here.
  927. on openStack
  928.   global kPD,kImageType,gImageNum,gTimerDelay,gTimerStart,gLoopForever
  929.   global gPlayForward,gMusicNum,gMusicOn,gMusicVolume,gBufferValue,gOrigSystemVolumeFS
  930.   set the windowColor to black
  931.   set the fullScreen to true 
  932.   set the centeredWindow to true
  933.   hide menubar
  934.   hide toolbar
  935.   hide scrollbars
  936.   hide titlebar
  937.   sizeWindow
  938.   -- set the idleTicks to 30  -- the minimum interval between system idle messages
  939.   -- setup platform-specific globals:
  940.   if the platform = "Macintosh" then 
  941.     put ":" into kPD
  942.     put "PICT" into kImageType
  943.   else
  944.     put "\" into kPD
  945.     put "BMP" into kImageType 
  946.   end if
  947.   -- setup other globals:
  948.   put 0 into gImageNum
  949.   put 0 into gTimerStart
  950.   put 0 into gMusicNum
  951.   put true into gPlayForward
  952.   -- the following can be passed from the FDC shell stack:
  953.   if gLoopForever is empty then put true into gLoopForever
  954.   if gTimerDelay is empty then put 5 into gTimerDelay
  955.   if gMusicOn is empty then put true into gMusicOn
  956.   if gMusicVolume is empty then
  957.     --set the playVolume of bg sound "Music Object" to 50
  958.   else
  959.     set the playVolume of bg sound "Music Object" to gMusicVolume
  960.   end if
  961.   put the systemVolume into gOrigSystemVolumeFS
  962.   set the systemVolume to 50
  963.   -- for testing the bufferSize property:
  964.   --if (the optionKey is down) then
  965.   --ask "Enter a music buffer value (sec):" with "0"
  966.   --put it into gBufferValue
  967.   --end if
  968.   if gBufferValue is empty then put 15 into gBufferValue
  969.   buildPath  -- build Media path
  970.   buildImageList  -- build image list
  971.   buildLogoList  -- build logo list and remove logo file names from image list
  972.   if gMusicOn is true then buildMusicList  -- build sound file list
  973.   set the script of bg bitmap "Logo Frame A" to "none"
  974.   set the visible of bg bitmap "Back On" of cd "Show Cd" to false
  975.   set the visible of bg bitmap "Pause On" of cd "Show Cd" to false
  976.   set the visible of bg bitmap "Forward On" of cd "Show Cd" to true
  977.   set the visible of bg bitmap "Stop On" of cd "Show Cd" to false
  978.   if gMusicOn is true and kMusicList is not empty then playMusic  -- start the first music file
  979.   loadImage  -- loads the first image
  980. end openStack
  981. on sizeWindow
  982.   global kMainWidth,kMainHeight,kScreenWide,kScreenHigh
  983.   put 640 into kMainWidth
  984.   put 480 into kMainHeight
  985.   -- set the width to kMainWidth
  986.   -- set the height to kMainHeight
  987.   put (item 3 of the screenRect) into kScreenWide
  988.   put (item 4 of the screenRect) into kScreenHigh
  989.   -- put round((kScreenWide - kMainWidth) / 2) into tMainLeft
  990.   -- put round((kScreenHigh - kMainHeight) / 2) into tMainTop
  991.   -- set the topLeft to tMainLeft,tMainTop
  992. end sizeWindow
  993. on idle  -- checks to see if the music file is finished; calls next music file if needed
  994.   global kMusicList,gMusicOn
  995.   if kMusicList is empty or gMusicOn is false then exit idle  -- no music, no worries
  996.   if (the isPlaying of bg sound "Music Object" is false) then playMusic
  997.   -- used in testing the buffersize property:
  998.   --if (the optionKey is down) then
  999.   --answer "Music buffer set to" && (the bufferSize of bg sound "Music Object") && "sec."
  1000.   --end if
  1001. end idle
  1002. on buildPath  -- constructs the path to the Media folder
  1003.   global kMediaPath,kPD
  1004.   put stackPath() & "MEDIA" & kPD into kMediaPath
  1005. end buildPath
  1006. on buildImageList  -- constructs lists of available images
  1007.   global kImageList,kImageType,gFromFrontEnd
  1008.   put stackPath() & "MEDIA" into tMediaPath
  1009.   put the list of files of type kImageType in tMediaPath into kImageList
  1010.   if kImageList is "Volume does not exist." or kImageList is empty
  1011.   then  -- close the slideshow
  1012.     answer warnNoMedia()
  1013.     if gFromFrontEnd is true then
  1014.       dismiss with "exit"
  1015.     else
  1016.       quit 
  1017.     end if
  1018.   end if
  1019. end buildImageList
  1020. on buildLogoList  -- removes the logo images from kImageList; builds the logo list
  1021.   global kImageList,kLogoList
  1022.   put (number of lines in kImageList) into j    
  1023.   put "none" into tCurrentLogo
  1024.   repeat with i = 1 to j
  1025.     if line i of kImageList contains "LOGO"
  1026.     then
  1027.       put line i of kImageList into tCurrentLogo
  1028.     else
  1029.       put (line i of kImageList) & return after tNewImageList
  1030.       put tCurrentLogo & return after kLogoList
  1031.     end if
  1032.   end repeat
  1033.   -- save the updated image list:
  1034.   put tNewImageList into kImageList
  1035. end buildLogoList
  1036. on buildMusicList  -- constructs lists of available music/sound files
  1037.   global kMediaPath,kMusicList
  1038.   if the platform = "Macintosh" then put "AIFF" into tMusicType else put "AIF" into tMusicType
  1039.   put the list of files of type tMusicType in kMediaPath into kMusicList
  1040. end buildMusicList
  1041. on loadImage  -- loads and positions the next image and caption text; displays them
  1042.   global kMediaPath,kImageList,gImageNum,kMainWidth,kMainHeight
  1043.   if nextNum() = "end" then exit loadImage  -- skips loading if there are no more images
  1044.   -- build next image name:
  1045.   put line nextNum() of kImageList into tNextImage
  1046.   -- read in the next caption text:
  1047.   put readTextFile( (kMediaPath & stripExt(tNextImage) & ".TXT") , 2 ) into tNextTextData
  1048.   lock screen
  1049.   -- load in and format the image, logo (if necessary), and text data:
  1050.   -- get hasMemory(3000 * 1024)  -- tries to free memory
  1051.   import kMediaPath & tNextImage into bg bitmap "Frame A"
  1052.   set the loc of bg bitmap "Frame A" to round(kMainWidth/2),round(kMainHeight/2)
  1053.   put the top of bg bitmap "Frame A" into tTopY
  1054.   set the top of bg bitmap "Frame A" to (tTopY - 20)
  1055.   loadLogo
  1056.   formatText tNextTextData
  1057.   unlock screen with visual effect wipe right in 20 ticks
  1058.   put nextNum() into gImageNum  -- record what is now the current image number
  1059. end loadImage
  1060. on formatText tNextTextData
  1061.   -- insert the text:
  1062.   if (number of lines in tNextTextData) = 1
  1063.   then
  1064.     put empty into bg field "Text Frame A1"
  1065.     put line 1 of tNextTextData into bg field "Text Frame A2"
  1066.   else 
  1067.     put line 1 of tNextTextData into bg field "Text Frame A1"
  1068.     put line 2 of tNextTextData into bg field "Text Frame A2"
  1069.   end if
  1070.   -- format the text:
  1071.   -- set the textColor of tTextObjLocater to 1
  1072.   -- set the textFont of tTextObjLocater to "Helvetica"
  1073.   -- set the textSize of tTextObjLocater to 12
  1074.   -- set the textStyle of tTextObjLocater to bold
  1075.   -- remove the bold style from the second line:
  1076.   -- set the textStyle of ("bg grc" && quote & tTextObjName & 2 & quote) to empty 
  1077. end formatText
  1078. on loadLogo  -- loads the next logo image, if necessary
  1079.   global kMediaPath,kLogoList
  1080.   put (line nextNum() of kLogoList) into tNextLogo
  1081.   -- check to see if the logo image has previously been loaded here; if so, we're done!
  1082.   if (line 1 of the script of bg bitmap "Logo Frame A") = tNextLogo then exit loadLogo  -- using the script as a custom property
  1083.   -- load the new logo image:
  1084.   if tNextLogo = "none"  -- make sure there is a logo image present
  1085.   then 
  1086.     put empty into bg bitmap "Logo Frame A"
  1087.   else 
  1088.     import kMediaPath & tNextLogo into bg bitmap "Logo Frame A"
  1089.   end if
  1090.   -- record the new logo name so we don't have to reload it in the future:
  1091.   set the script of bg bitmap "Logo Frame A" to tNextLogo  -- using the script as a custom property
  1092. end loadLogo
  1093. function nextNum  
  1094.   -- returns the next image number based on the loop state (forever/once) and the play direction
  1095.   -- this function needed to be reformatted in Oracle because OMO doesn't handle nested if-then's well
  1096.   global kImageList,gImageNum,gLoopForever,gPlayForward
  1097.   if (gPlayForward = true) and (gImageNum = (number of lines in kImageList)) and (gLoopForever = true)
  1098.   then return "1"
  1099.   if (gPlayForward = true) and (gImageNum = (number of lines in kImageList)) and (gLoopForever = false)
  1100.   then return "end"
  1101.   if (gPlayForward = true) and (gImageNum < (number of lines in kImageList)) 
  1102.   then return gImageNum + 1
  1103.   if (gPlayForward = false) and (gImageNum < 2) and (gLoopForever = true)
  1104.   then return (number of lines in kImageList)
  1105.   if (gPlayForward = false) and (gImageNum < 2) and (gLoopForever = false)
  1106.   then return "end"
  1107.   if (gPlayForward = false) and (gImageNum >= 2) 
  1108.   then return gImageNum - 1
  1109. end nextNum
  1110. on playMusic  -- plays the next sound file in kMusicList
  1111.   global kMediaPath,kMusicList,gMusicNum,gBufferValue
  1112.   if kMusicList is empty then exit playMusic
  1113.   --> Increment the music number and reset to 1 if all sound files have been played:
  1114.   add 1 to gMusicNum
  1115.   if gMusicNum > (number of lines in kMusicList) then put 1 into gMusicNum
  1116.   --> Play the music:
  1117.   set the soundFile of bg sound "Music Object" to kMediaPath & (line gMusicNum of kMusicList)
  1118.   set the bufferSize of bg sound "Music Object" to gBufferValue
  1119.   play bg sound "Music Object"
  1120. end playMusic
  1121. function readTextFile tFileName,tLineCount
  1122.   -- returns first [tLineCount] lines of the text file whose full pathname has been passed in
  1123.   if tFileName is empty then return "error: no text file name specified"
  1124.   -- if line 2 of FileExists(tFileName) = false then return empty
  1125.   import tFileName into bg field "Raw Text"
  1126.   if tLineCount > 0  -- i.e. we've been passed a valid number
  1127.   then
  1128.     repeat with i = 1 to (tLineCount)
  1129.       put (line i of bg field "Raw Text") after tClippedText
  1130.       if i < tLineCount then put return after tClippedText
  1131.     end repeat
  1132.   else  -- i.e. we haven't been passed a valid number, so just return the whole shebang
  1133.     put bg field "Raw Text" into tClippedText
  1134.   end if
  1135.   put empty into bg field "Raw Text"
  1136.   return tClippedText
  1137. end readTextFile
  1138. function stripExt tFileName  -- removes the ".EXT" off any DOS-style 8.3 filename; no error check
  1139.   repeat 4 times
  1140.     put empty into last char of tFileName
  1141.   end repeat
  1142.   return tFileName
  1143. end stripExt
  1144. function testMemory tDestinationObj  
  1145.   -- tries to free memory
  1146.   -- get hasMemory(3000 * 1024)  -- tries to free memory
  1147.   --  -- if not enough memory, unload the hidden frames temporarily:
  1148.   --  if hasMemory(tDestinationObj) is false
  1149.   --  then
  1150.   --    if the visible of bg grc "Frame A" is true then wipeHiddenB else wipeHiddenA
  1151.   --    get hasMemory(3000 * 1024)  -- tries to free memory
  1152.   --  end if
  1153. end testMemory
  1154. on wipeHiddenA  -- removes all contents from hidden A frames
  1155.   put empty into bg bitmap "Frame A"
  1156.   put empty into bg bitmap "Logo Frame A"
  1157.   set the script of bg bitmap "Logo Frame A" to empty
  1158.   put empty into bg field "Text Frame A1"
  1159.   put empty into bg field "Text Frame A2"
  1160. end wipeHiddenA
  1161. on fadeMusic  --> This loops the speaker volume down to zero and stops the sound:
  1162.   put the playVolume of bg sound "Music Object" into tOrigVolume
  1163.   put round((the playVolume of bg sound "Music Object") * 0.1) into tDecrement
  1164.   put the playVolume of bg sound "Music Object" into tLowerVolume
  1165.   repeat until tLowerVolume < 2  -- stops the fade down if the volume is 0 or 1
  1166.     set the playVolume of bg sound "Music Object" to tLowerVolume
  1167.     put ((the playVolume of bg sound "Music Object") - tDecrement) into tLowerVolume
  1168.     wait 20 ticks
  1169.   end repeat
  1170.   stop bg sound "Music Object"
  1171.   set the playVolume of bg sound "Music Object" to tOrigVolume
  1172. end fadeMusic
  1173. -------------------------------------------
  1174. function warnNoMedia
  1175.   return "No images found, or Media folder not present! Exiting..."
  1176. end warnNoMedia
  1177. function warnMemory
  1178.   return "Sorry - this program is out of memory."
  1179. end warnMemory
  1180. -------------------------------------------
  1181. on closeStack
  1182.   global gMusicOn,gMusicVolume,gOrigSystemVolumeFS
  1183.   lock screen
  1184.   wipeHiddenA
  1185.   set the visible of bg bitmap "Back On" of cd "Show Cd" to false
  1186.   set the visible of bg bitmap "Pause On" of cd "Show Cd" to false
  1187.   set the visible of bg bitmap "Forward On" of cd "Show Cd" to false
  1188.   set the visible of bg bitmap "Stop On" of cd "Show Cd" to false
  1189.   if gMusicOn is true then fadeMusic
  1190.   put (the playVolume of bg sound "Music Object") into gMusicVolume
  1191.   set the bufferSize of bg sound "Music Object" to 1
  1192.   set the soundFile of bg sound "Music Object" to empty
  1193.   if gOrigSystemVolumeFS is not empty
  1194.   then
  1195.     set the systemVolume to gOrigSystemVolumeFS
  1196.   end if
  1197.   unlock screen
  1198.   -- emptyCache
  1199.   compact
  1200. end closeStack
  1201. PFONT
  1202. 8514OEM
  1203. ABADI MT CONDENSED LIGHT
  1204.     ADLIBFONT
  1205. ALGERIAN
  1206. ARIAL
  1207. ARIAL BLACK
  1208. ARIAL MT CONDENSED LIGHT
  1209. ARIAL NARROW
  1210. ARIAL ROUNDED MT BOLDB
  1211. ATHENS
  1212. AVANT GARDE
  1213. B COURIER BOLD
  1214. B FUTURA BOLD8
  1215. B HELVETICA BOLD
  1216. B TIMES BOLD
  1217. BAUHAUS 93 
  1218. BI COURIER BOLDOBLIQUE
  1219. BI HELVETICA BOLDOBLIQUE
  1220. BI TIMES BOLDITALIC
  1221. BO FUTURA BOLDOBLIQUE
  1222. BOCARATONICG
  1223. BOCARATONICGSOLID
  1224. BODONI MT ULTRA BOLD
  1225. BOOK ANTIQUA
  1226. BOOKMAN
  1227. BOOKMAN OLD STYLE
  1228. BOOKMAN OLD STYLE BOLD
  1229. BRAGGADOCIO
  1230. BRITANNIC BOLD
  1231. BRUSH SCRIPT MT
  1232. C FUTURA CONDENSED
  1233. CAIROO
  1234. CALISTO MT 
  1235. CB FUTURA CONDENSEDBOLD
  1236. CBO FUTURA CONDBOLDOBLIQUE
  1237. CENTURY GOTHIC
  1238. CENTURY SCHOOLBOOK
  1239. CHICAGO
  1240. CL FUTURA CONDENSEDLIGHT
  1241. CLO FUTURA CONDLIGHTOBLIQUE
  1242. CO FUTURA CONDENSEDOBLIQUE
  1243. COLONNA MTk
  1244. COMIC SANS MS
  1245. COPPERPLATE GOTHIC BOLD
  1246. COPPERPLATE GOTHIC LIGHT
  1247. COURIER
  1248. COURIER NEW
  1249. CXB FUTURA CONDEXTRABOLD
  1250. CXBO FUTURA CONDEXTRABOLDOBLIQU
  1251. DECOTURAICG
  1252. DECOTURAICGINLINE
  1253.     DESDEMONA
  1254. DINGBATS
  1255. FAJITAICGMILD
  1256. FARFELICGFELTTIP
  1257. FARFELICGPENCIL
  1258. FIXEDSYS
  1259. FOOTLIGHT MT LIGHTZ
  1260. FOOTNOTE
  1261. FUTURA
  1262. FUTURA BDCN BT
  1263. FUTURA BK BT
  1264. FUTURA BOOK
  1265. FUTURA HV BT
  1266. FUTURA LT BT
  1267. FUTURA LTCN BT
  1268. FUTURA MD BT
  1269. FUTURA MDCN BT
  1270. FUTURA XBLK BT
  1271. FUTURA XBLKCN BT
  1272. FUTURA XBLKCNIT BT
  1273. FUTURA XBLKIT BT
  1274. FUTURABLACK BT
  1275. FUTURABOLD
  1276. FUTURABOOK
  1277. FUTURADEMIBOLD
  1278. FUTURAEXTRABOLD
  1279. FUTURALIGHT
  1280. FUTURAMEDIUM8
  1281. GARAMOND
  1282. GENEVA
  1283. GENEVA
  1284. GEORGIA
  1285. GILL SANS CONDENSED BOLD
  1286. H AVENIR HEAVY 
  1287. HAETTENSCHWEILER
  1288.     HELVETICA
  1289. I COURIER OBLIQUE
  1290. I HELVETICA OBLIQUE
  1291. I TIMES ITALIC
  1292. IMPACT
  1293. KINO MT
  1294. KLANG MT
  1295. L AVENIR LIGHT
  1296. LO AVENIR LIGHTOBLIQUE
  1297. LONDON
  1298. LOS ANGELES
  1299. LUCIDA CONSOLE
  1300. LUCIDA HANDWRITING
  1301. LUCIDA SANS
  1302. LUCIDA SANS UNICODE
  1303. MARLETT
  1304. MATURA MT SCRIPT CAPITALS
  1305. MCGULLY
  1306. MINI PICS L'IL EDIBLES
  1307. MINI PICS L'IL FOLKS
  1308. MINI PICS L'IL STUFF
  1309. MINIPICSARTJAM|
  1310. MINIPICSCLASSIC
  1311. MINIPICSLILEDIBLES
  1312. MINIPICSLILFACES
  1313. MINIPICSLILFOLKS
  1314. MINIPICSLILSTUFF
  1315. MISTERFRISKY
  1316. MISTRAL
  1317. MOBILE
  1318. MODERN 
  1319. MONACO
  1320. MS LINEDRAW
  1321. MS SERIF
  1322. MT EXTRA
  1323. N HELVETICA NARROW
  1324. NEW BEROLINA MT
  1325. NEW CENTURY SCHLBK
  1326. NEW YORK6
  1327. NEWS GOTHIC MT
  1328. O FUTURA BOOKOBLIQUE
  1329. O FUTURA OBLIQUE
  1330. OCR A EXTENDED
  1331. OLD ENGLISH TEXT MT
  1332. PAISLEYICGTWO
  1333. PALATINO
  1334. PALEX
  1335. PLAYBILL
  1336. R AVENIR ROMAN
  1337. RELIEFFONT 
  1338. SAN FRANCISCO
  1339. SCRIPT MT BOLD
  1340. SMALL FONTS
  1341.     STAMPFONT
  1342. STENCIL
  1343. SYMBOLB
  1344. TIMES
  1345. TIMES NEW ROMAN
  1346. TORONTO
  1347. TREBUCHET MSY
  1348. UNCLESTINKY
  1349. VENICE
  1350. VERDANA
  1351. VIVALDI
  1352. WIDE LATIN
  1353.     WINGDINGS
  1354. ZAPF CHANCERY:
  1355. ZAPF DINGBATS
  1356. Settings CdSCRP
  1357. on openCard
  1358.   global gLoopForever,gMusicOn
  1359.   setupVolumeSlider
  1360.   setupMusicToggle(gMusicOn)
  1361.   setupDelaySlider
  1362.   setupLoopToggle(gLoopForever)
  1363. end openCard
  1364. on setupMusicToggle tMusicOn  -- sets up the music radio buttons
  1365.   set the hilite of cd btn "Music On" to tMusicOn
  1366.   set the hilite of cd btn "Music Off" to not(tMusicOn)
  1367. end setupMusicToggle
  1368. on setupVolumeSlider  
  1369.   -- sets up and calls the moveSlider function to make the slider reflect the current volume
  1370.   put round((the playVolume of bg sound "Music Object") / 10) into tCurrVolume
  1371.   put ("cd bmp" && quote & "Volume Knob" & quote) into tKnobName
  1372.   put ("cd shape" && quote & "Volume Slider" & quote) into tSliderName
  1373.   -- move the slider to the correct position:
  1374.   get moveSlider(tKnobName,tSliderName,10,tCurrVolume)
  1375.   -- update the numerical readout:
  1376.   put tCurrVolume into cd fld "Volume Readout"
  1377. end setupVolumeSlider
  1378. on doVolumeSlider  
  1379.   -- sets up and calls the moveSlider function when the slider is dragged/clicked
  1380.   put ("cd bmp" && quote & "Volume Knob" & quote) into tKnobName
  1381.   put ("cd shape" && quote & "Volume Slider" & quote) into tSliderName
  1382.   -- move the slider to the mouse position; get the new volume units
  1383.   get moveSlider(tKnobName,tSliderName,10)
  1384.   put it into tNewVolume
  1385.   -- update the system volume:
  1386.   set the playVolume of bg sound "Music Object" to (tNewVolume * 10)
  1387.   -- update the numerical readout:
  1388.   put tNewVolume into cd fld "Volume Readout"
  1389. end doVolumeSlider
  1390. on setupLoopToggle tLoopForever  -- sets up the loop radio buttons
  1391.   set the hilite of cd btn "Loop Forever" to tLoopForever
  1392.   set the hilite of cd btn "Loop Once" to not(tLoopForever)
  1393. end setupLoopToggle
  1394. on setupDelaySlider  
  1395.   -- sets up and calls the moveSlider function to make the slider reflect the current delay
  1396.   global gTimerDelay
  1397.   put gTimerDelay into tDelaySec
  1398.   put ("cd bitmap" && quote & "Delay Knob" & quote) into tKnobName
  1399.   put ("cd shape" && quote & "Delay Slider" & quote) into tSliderName
  1400.   -- convert from delay seconds to delay units (reverse of next handler)
  1401.   if tDelaySec = 0 then put 1 into tDelaySec
  1402.   put round(sqrt(2 * tDelaySec)) into tDelayUnits
  1403.   -- move the slider to the correct position:
  1404.   get moveSlider(tKnobName,tSliderName,7,tDelayUnits)
  1405.   -- update the numerical readout:
  1406.   put gTimerDelay into cd fld "Delay Readout"
  1407. end setupDelaySlider
  1408. on doDelaySlider  
  1409.   -- sets up and calls the moveSlider function when the slider is dragged/clicked
  1410.   global gTimerDelay
  1411.   put ("cd bitmap" && quote & "Delay Knob" & quote) into tKnobName
  1412.   put ("cd shape" && quote & "Delay Slider" & quote) into tSliderName
  1413.   -- move the slider to the mouse position; get the new delay units
  1414.   get moveSlider(tKnobName,tSliderName,7)
  1415.   put it into tDelayUnits
  1416.   -- convert from delay units to delay seconds (a hyperbolic algorithm):
  1417.   put round((tDelayUnits * tDelayUnits) / 2) into gTimerDelay  
  1418.   -- update the numerical readout:
  1419.   put gTimerDelay into cd fld "Delay Readout"
  1420. end doDelaySlider
  1421. function moveSlider tKnobName,tSliderName,tStepNum,tPassedUnits
  1422.   -- a reusable function that easily manages sliders; needs only two graphics
  1423.   -- tKnobName: the name of the knob graphic (e.g. bg grc "Knob")
  1424.   -- tSliderName: the name of the slider graphic (e.g. bg grc "Slider")
  1425.   -- tStepNum: the number of "steps" or positions you want in the slider
  1426.   -- tPassedUnits: the step value you want to set the knob to; used to set up the slider w/o mouse
  1427.   -- note: the function returns the knob position (in step units) when the mouse is released;
  1428.   ----  the first position is 1
  1429.   put item 2 of the loc of tSliderName into tCoordV  -- get the vertical knob coord
  1430.   put the left of tSliderName into tLeftBoundary
  1431.   put round((the width of tSliderName) / (tStepNum - 1)) into tIntervalPixels  -- the step spacing
  1432.   put true into tFirstLoopThrough  -- so we can make sure the loop executes at least once
  1433.   repeat while ((the mouse is down) and (tPassedUnits is empty)) or (tFirstLoopThrough = true)
  1434.     put false into tFirstLoopThrough
  1435.     if tPassedUnits is empty  -- we decide if we're setting up the slider or keying off the mouse
  1436.     then
  1437.       put round((the mouseH - tLeftBoundary) / tIntervalPixels) into tIntervalUnits
  1438.     else 
  1439.       put tPassedUnits - 1 into tIntervalUnits
  1440.     end if
  1441.     -- make sure we don't overshoot the slider endpoints:
  1442.     if tIntervalUnits < 0 then put 0 into tIntervalUnits
  1443.     if tIntervalUnits > (tStepNum - 1) then put (tStepNum -1) into tIntervalUnits
  1444.     put tIntervalUnits * tIntervalPixels + tLeftBoundary into tCoordH  -- the horiz knob coord
  1445.     set the loc of tKnobName to tCoordH,tCoordV  -- move the knob
  1446.   end repeat
  1447.   return tIntervalUnits + 1
  1448. end moveSlider
  1449. shape id 1SCRP
  1450. on mouseUp
  1451. end mouseUp
  1452. field id 31data
  1453. +TAIL
  1454. field id 30data
  1455. -TAIL
  1456. field id 28data
  1457. +TAIL
  1458. field id 29data
  1459. -TAIL
  1460. bitmap id 27data
  1461. pSf[$
  1462. )5555
  1463. #TAIL
  1464. Delay SliderSCRP
  1465. on mouseDown
  1466.   doDelaySlider
  1467. end mouseDown
  1468. bitmap id 2SCRP
  1469. on mouseUp
  1470.   play bg sound "Nav.snd"
  1471.   go cd "Show Cd"
  1472. end mouseUp
  1473.  TAIL
  1474. bitmap id 3data
  1475. $TAIL
  1476. bitmap id 4SCRP
  1477. on mouseUp
  1478.   play bg sound "Nav.snd"
  1479.   go cd "Credits Cd"
  1480. end mouseUp
  1481. #TAIL
  1482. shape id 8SCRP
  1483. on mouseDown
  1484.   doDelaySlider
  1485. end mouseDown
  1486. Delay Readoutdata
  1487. 5TAIL
  1488. Delay KnobSCRP
  1489. on mouseDown
  1490.   doDelaySlider
  1491. end mouseDown
  1492. aNAME
  1493. shape id 14TAIL
  1494. Loop ForeverSCRP
  1495. on mouseUp
  1496.   global gLoopForever
  1497.   set the hilite of me to true
  1498.   set the hilite of cd btn "Loop Once" to false
  1499.   put true into gLoopForever
  1500. end mouseUp
  1501.     Loop OnceSCRP
  1502. on mouseUp
  1503.   global gLoopForever
  1504.   set the hilite of me to true
  1505.   set the hilite of cd btn "Loop Forever" to false
  1506.   put false into gLoopForever
  1507. end mouseUp
  1508. tNAME
  1509. shape id 15TAIL
  1510. tNAME
  1511. shape id 16TAIL
  1512. tNAME
  1513. shape id 17TAIL
  1514. tNAME
  1515. shape id 18TAIL
  1516. tNAME
  1517. shape id 19TAIL
  1518. tNAME
  1519. shape id 20TAIL
  1520. Music OnSCRP
  1521. on mouseUp
  1522.   global gMusicOn
  1523.   if the hilite of me is false
  1524.   then
  1525.     set the hilite of me to true
  1526.     set the hilite of cd button "Music Off" to false
  1527.     put true into gMusicOn
  1528.     playMusic
  1529.   end if
  1530. end mouseUp
  1531.     Music OffSCRP
  1532. on mouseUp
  1533.   global gMusicOn
  1534.   set the hilite of me to true
  1535.   set the hilite of cd button "Music On" to false
  1536.   put false into gMusicOn
  1537.   stop bg sound "Music Object"
  1538. end mouseUp
  1539. Volume SliderSCRP
  1540. on mouseDown
  1541.   doVolumeSlider
  1542. end mouseDown
  1543. shape id 23SCRP
  1544. on mouseDown
  1545.   doDelaySlider
  1546. end mouseDown
  1547. Volume KnobSCRP
  1548. on mouseDown
  1549.   doVolumeSlider
  1550. end mouseDown
  1551. Volume Readoutdata
  1552. 5TAIL
  1553. Show Bgbkgd
  1554. eNAME
  1555. Black FrameEXTI
  1556.     INFO
  1557. 1JNJNJNa
  1558. <<<<<
  1559. <X<XX8XX
  1560. llllllll
  1561. "TAIL
  1562. Frame AEXTI
  1563. Logo Frame AEXTI
  1564. Text Frame A1EXTI
  1565. Text Frame A2EXTI
  1566. Music ObjectEXTI
  1567. Raw TextEXTI
  1568. Back OnEXTI
  1569. "TAIL
  1570. Forward OnEXTI
  1571. "TAIL
  1572. Stop OnEXTI
  1573. !TAIL
  1574. Nav.sndEXTI
  1575. AIFFCOMM
  1576. Pause OnSCRP
  1577. on mouseUp
  1578.   play bg sound "Nav.snd"
  1579.   set the visible of bg bitmap "Back On" to false
  1580.   set the visible of bg bitmap "Forward On" to false
  1581.   set the visible of bg bitmap "Pause On" to true
  1582. end mouseUp
  1583. 55555555
  1584. 55555555
  1585. "TAIL
  1586.